﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PHMEE.Controllers.Auth
{
    /// <summary>
    /// 服务器监测🚢🌞🌛✨
    /// </summary>
    [Route("api/server")]
    public class ServerController : PHMEEController
    {
        private readonly IServerAppService systemAppService;

        public ServerController(IServerAppService systemAppService)
        {
            this.systemAppService = systemAppService;
        }


        /// <summary>
        /// 获取服务器配置信息 🔖
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        [Route("GetServerBase")]
        public object GetServerBase()
        {
            return systemAppService.GetServerBase();
        }

        /// <summary>
        /// 获取服务器使用信息 🔖
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        [Route("GetServerUsed")]
        public object GetServerUsed()
        {
            return systemAppService.GetServerUsed();
        }

        /// <summary>
        /// 获取服务器磁盘信息 🔖
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        [Route("GetServerDisk")]
        public object GetServerDisk()
        {
            return systemAppService.GetServerDisk();
        }
    }
}
